﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyEntity
{
    public  class StudentInfoEntity
    {
        //默认构造器  没设置时先设为0
        public StudentInfoEntity()
        {
            this.StuID = "";
            this.StuName = "";
            this.StuAge = 0;
            this.StuSex = "";
            this.StuHobby= "";
            this.ProfessionID = 0;
            this.ProfessionName = "";
        }
        public string StuID { get; set; } //学号
        public string StuName { get; set; } //学生姓名

        public int StuAge { get; set; } //学生年龄

        public string StuSex { get; set; } //性别

        public string StuHobby { get; set; } //爱好

        public int ProfessionID { get; set; } //专业编号

        //添加这个是为了只返回一个类别的名称
        public string ProfessionName { get; set; } //专业名称
    }
}
